<!DOCTYPE html>
<html class="no-js" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <title>Title</title>
</head>
<body>
    <ul th:fragment="menu" class="am-list admin-sidebar-list">
        <li th:each="menu,menuStat : ${session.menuList}" >
            <a th:if="${menu.menuType == 1}" th:href="@{${menu.menuUrl}+'?name='+${menu.menuName}}" th:inline="text">
                <span th:class="${menu.menuCss}"></span>
                [[${menu.menuName}]]
            </a>
            <a th:if="${menu.menuType == 2}" class="am-cf" th:attr="data-am-collapse='{target: \'#collapse-nav-'+${menu.menuId}+'\'}'" th:inline="text">
                <span th:class="${menu.menuCss}"></span>
                [[${menu.menuName}]]
                <span class="am-icon-angle-right am-fr am-margin-right"></span>
            </a>
            <ul th:if="${menu.menuType == 2}"  class="am-list am-collapse admin-sidebar-sub am-in" th:id="'collapse-nav-'+${menu.menuId}">
                <li th:each="menu2,menuStat2 : ${menu.menuInfoList}">
                    <a th:href="@{${menu2.menuUrl}+'?name='+${menu2.menuName}}" class="am-cf" th:inline="text">
                        <span th:class="${menu2.menuCss}"></span>
                        [[${menu2.menuName}]]
                    </a>
                </li>
            </ul>
        </li>
        <li><a th:href="@{/logout.do}"><span class="am-icon-sign-out"></span> 注销</a></li>
    </ul>
</body>
</html>